package com.blog.service.frontpage;

import com.blog.dao.conn.ParamSet;
import com.blog.dao.frontpage.SupportDao;
import com.blog.entity.SupportEntity;

public class SupportService {
	SupportDao dao = new SupportDao();
	/**
	 * 根据文章id和点赞人id修改点赞数
	 */
	public int updateSupportNumber(int articleid) {
		return dao.updateSupportNumber(articleid);
	}
	
	/**
	 * 根据点赞向数据库插入一条数据
	 */
	public int insertSupportNumber(int supportid, int articleid) {
		return dao.insertSupportNumber(supportid, articleid);
	}
	
	/**
	 * 根据查询文章id判断该用户是否存在
	 */
	public SupportEntity querySupportNumber(int articleid) {
		return dao.querySupportNumber(articleid);
	}
}
